package com.zhao.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
public class Cat {

    @Value("mimi")
    public String name;

    public void shout(){
        System.out.println("miao~");
    }
}
